home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / extensio / xi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  5.5 KB  |  177 lines

  1. /* $XConsortium: XI.h,v 1.4 89/12/06 20:43:42 rws Exp $ */
  2.  
  3. /************************************************************
  4. Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, California, and the 
  5. Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.             All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its
  10. documentation for any purpose and without fee is hereby granted,
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in
  13. supporting documentation, and that the names of Hewlett-Packard or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.
  16.  
  17. HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ********************************************************/
  26.  
  27. /* Definitions used by the server, library and client */
  28.  
  29. #define _XI_H_
  30.  
  31. #define sz_xGetExtensionVersionReq        8
  32. #define sz_xGetExtensionVersionReply        32
  33. #define sz_xListInputDevicesReq            4
  34. #define sz_xListInputDevicesReply        32
  35. #define sz_xOpenDeviceReq            8
  36. #define sz_xOpenDeviceReply            32
  37. #define sz_xCloseDeviceReq            8
  38. #define sz_xSetDeviceModeReq            8
  39. #define sz_xSetDeviceModeReply            32
  40. #define sz_xSelectExtensionEventReq        12
  41. #define sz_xGetSelectedExtensionEventsReq    8
  42. #define sz_xGetSelectedExtensionEventsReply    32
  43. #define sz_xChangeDeviceDontPropagateListReq    12
  44. #define sz_xGetDeviceDontPropagateListReq    8
  45. #define sz_xGetDeviceDontPropagateListReply    32
  46. #define sz_xGetDeviceMotionEventsReq        16
  47. #define sz_xGetDeviceMotionEventsReply        32
  48. #define sz_xChangeKeyboardDeviceReq        8
  49. #define sz_xChangeKeyboardDeviceReply        32
  50. #define sz_xChangePointerDeviceReq        8
  51. #define sz_xChangePointerDeviceReply        32
  52. #define sz_xGrabDeviceReq            20
  53. #define sz_xGrabDeviceReply            32
  54. #define sz_xUngrabDeviceReq            12
  55. #define sz_xGrabDeviceKeyReq            20
  56. #define sz_xGrabDeviceKeyReply            32
  57. #define sz_xUngrabDeviceKeyReq            16
  58. #define sz_xGrabDeviceButtonReq            20
  59. #define sz_xGrabDeviceButtonReply        32
  60. #define sz_xUngrabDeviceButtonReq        16
  61. #define sz_xAllowDeviceEventsReq        12
  62. #define sz_xGetDeviceFocusReq            8
  63. #define sz_xGetDeviceFocusReply            32
  64. #define sz_xSetDeviceFocusReq            16
  65. #define sz_xGetFeedbackControlReq        8
  66. #define sz_xGetFeedbackControlReply        32
  67. #define sz_xChangeFeedbackControlReq        12
  68. #define sz_xGetDeviceKeyMappingReq        8
  69. #define sz_xGetDeviceKeyMappingReply        32
  70. #define sz_xChangeDeviceKeyMappingReq        8
  71. #define sz_xGetDeviceModifierMappingReq        8
  72. #define sz_xSetDeviceModifierMappingReq        8
  73. #define sz_xSetDeviceModifierMappingReply    32
  74. #define sz_xGetDeviceButtonMappingReq        8
  75. #define sz_xGetDeviceButtonMappingReply        32
  76. #define sz_xSetDeviceButtonMappingReq        8
  77. #define sz_xSetDeviceButtonMappingReply        32
  78. #define sz_xQueryDeviceStateReq            8
  79. #define sz_xQueryDeviceStateReply        32
  80. #define sz_xSendExtensionEventReq        16
  81.  
  82. #define INAME             "XInputExtension"
  83. #define Dont_Check        0
  84. #define XInput_Initial_Release    1
  85. #define NoSuchExtension        1
  86.  
  87. #define COUNT            0
  88. #define CREATE            1
  89.  
  90. #define NewPointer        0
  91. #define NewKeyboard        1
  92.  
  93. #define XPOINTER        0
  94. #define XKEYBOARD        1
  95.  
  96. #define IsXPointer        0
  97. #define IsXKeyboard        1
  98. #define IsXExtensionDevice    2
  99.  
  100. #define AsyncThisDevice        0
  101. #define SyncThisDevice        1
  102. #define ReplayThisDevice    2
  103. #define AsyncOtherDevices    3
  104. #define AsyncAll        4
  105. #define SyncAll            5
  106.  
  107. #define FollowKeyboard         3
  108. #define RevertToFollowKeyboard     3
  109.  
  110. #define DvAccelNum              (1L << 0)
  111. #define DvAccelDenom            (1L << 1)
  112. #define DvThreshold             (1L << 2)
  113.  
  114. #define DvKeyClickPercent    (1L<<0)
  115. #define DvPercent        (1L<<1)
  116. #define DvPitch            (1L<<2)
  117. #define DvDuration        (1L<<3)
  118. #define DvLed            (1L<<4)
  119. #define DvLedMode        (1L<<5)
  120. #define DvKey            (1L<<6)
  121. #define DvAutoRepeatMode    (1L<<7)
  122.  
  123. #define DvString                (1L << 0)
  124.  
  125. #define DvInteger               (1L << 0)
  126.  
  127. #define Relative                0
  128. #define Absolute                1
  129.  
  130. #define AddToList               0
  131. #define DeleteFromList          1
  132.  
  133. #define KeyClass          0
  134. #define ButtonClass          1
  135. #define ValuatorClass          2
  136. #define FeedbackClass          3
  137. #define ProximityClass      4
  138. #define FocusClass          5
  139. #define OtherClass          6
  140.  
  141. #define KbdFeedbackClass      0
  142. #define PtrFeedbackClass      1
  143. #define StringFeedbackClass      2
  144. #define IntegerFeedbackClass      3
  145. #define LedFeedbackClass      4
  146. #define BellFeedbackClass      5
  147.  
  148. #define _devicePointerMotionHint 0
  149. #define _deviceButton1Motion     1
  150. #define _deviceButton2Motion     2
  151. #define _deviceButton3Motion     3
  152. #define _deviceButton4Motion     4
  153. #define _deviceButton5Motion     5
  154. #define _deviceButtonMotion     6
  155. #define _deviceButtonGrab     7
  156. #define _deviceOwnerGrabButton     8
  157.  
  158. #define XI_BadDevice    0
  159. #define XI_BadEvent    1
  160. #define XI_BadMode    2
  161. #define XI_DeviceBusy    3
  162. #define XI_BadClass    4
  163.  
  164. typedef    unsigned long    XEventClass;
  165.  
  166. /*******************************************************************
  167.  *
  168.  * Extension version structure.
  169.  *
  170.  */
  171.  
  172. typedef struct {
  173.         int       present;
  174.         short    major_version;
  175.         short    minor_version;
  176. } XExtensionVersion;
  177.